
var demo;
(function (demo) {
    var Module = /** @class */ (function (_super) {
        __extends(Module, _super);
        function Module() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        Module.prototype.modulePreStart = function () {
            _super.prototype.modulePreStart.call(this);
            var back = new GYLite.GYUIComponent;
            var s = this;
            var g = back.graphics;
            var w, h;
            w = s.width;
            h = s.height;
            g.beginFill(0, 1);
            g.drawRect(0, 0, w, h);
            g.endFill();
            s.addChild(back);
            back.width = w;
            back.height = h;
            var btn;
            btn = new GYLite.GYButton;
            btn.width = 300;
            btn.height = 300;
            btn.label = "请点击我";
            btn.labelDisplay.size = 60;
            btn.horizonalCenter = 0;
            btn.verticalCenter = 0;
            back.addElement(btn);
            btn.setOnClick(function (e) {
                var txt = new GYLite.GYText;
                txt.width = s.stage.stageWidth;
                txt.height = 65;
                txt.size = 60;
                txt.verticalCenter = -60;
                txt.horizonalCenter = 0;
                txt.align = "center";
                txt.color = 0xffffff;
                txt.text = "欢迎使用羔羊引擎的模块化项目!";
                back.addElement(txt);
                back.removeElement(btn);
            }, s);
        };
        return Module;
    }(ModuleBase));
    demo.Module = Module;
})(demo || (demo = {}));
__reflect(demo.Module.prototype, "demo.Module");


